.class public Lcom/netease/newsreader/util/myPreference;
.super Landroid/preference/DialogPreference;
.source "myPreference.java"


# instance fields
.field private adapter:Lcom/netease/newsreader/util/MergeAdapter;

.field private clickListener:Landroid/view/View$OnClickListener;

.field private initStatus:Z

.field private mContext:Landroid/content/Context;

.field private mInflater:Landroid/view/LayoutInflater;

.field private mValue:Ljava/lang/String;

.field private offlineListView:Landroid/widget/ListView;

.field private radioCheckedListener:Landroid/widget/CompoundButton$OnCheckedChangeListener;

.field private rb:Landroid/widget/RadioButton;

.field private rbClose:Landroid/widget/RadioButton;

.field private rbLayout:Landroid/widget/RelativeLayout;

.field private rbLayoutClose:Landroid/widget/RelativeLayout;

.field private rbLayoutWifi:Landroid/widget/RelativeLayout;

.field private rbWifi:Landroid/widget/RadioButton;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1
    .parameter "context"
    .parameter "attrs"

    .prologue
    .line 41
    invoke-direct {p0, p1, p2}, Landroid/preference/DialogPreference;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 35
    const-string v0, ""

    iput-object v0, p0, Lcom/netease/newsreader/util/myPreference;->mValue:Ljava/lang/String;

    .line 38
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/netease/newsreader/util/myPreference;->initStatus:Z

    .line 165
    new-instance v0, Lcom/netease/newsreader/util/myPreference$1;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/util/myPreference$1;-><init>(Lcom/netease/newsreader/util/myPreference;)V

    iput-object v0, p0, Lcom/netease/newsreader/util/myPreference;->radioCheckedListener:Landroid/widget/CompoundButton$OnCheckedChangeListener;

    .line 188
    new-instance v0, Lcom/netease/newsreader/util/myPreference$2;

    invoke-direct {v0, p0}, Lcom/netease/newsreader/util/myPreference$2;-><init>(Lcom/netease/newsreader/util/myPreference;)V

    iput-object v0, p0, Lcom/netease/newsreader/util/myPreference;->clickListener:Landroid/view/View$OnClickListener;

    .line 43
    const v0, 0x7f030047

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/util/myPreference;->setDialogLayoutResource(I)V

    .line 44
    iput-object p1, p0, Lcom/netease/newsreader/util/myPreference;->mContext:Landroid/content/Context;

    .line 46
    const-string v0, "layout_inflater"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    .line 45
    iput-object v0, p0, Lcom/netease/newsreader/util/myPreference;->mInflater:Landroid/view/LayoutInflater;

    .line 47
    return-void
.end method

.method static synthetic access$0(Lcom/netease/newsreader/util/myPreference;)Landroid/widget/RadioButton;
    .locals 1
    .parameter

    .prologue
    .line 33
    iget-object v0, p0, Lcom/netease/newsreader/util/myPreference;->rb:Landroid/widget/RadioButton;

    return-object v0
.end method

.method static synthetic access$1(Lcom/netease/newsreader/util/myPreference;)Landroid/widget/RadioButton;
    .locals 1
    .parameter

    .prologue
    .line 31
    iget-object v0, p0, Lcom/netease/newsreader/util/myPreference;->rbWifi:Landroid/widget/RadioButton;

    return-object v0
.end method

.method static synthetic access$2(Lcom/netease/newsreader/util/myPreference;)Landroid/widget/RadioButton;
    .locals 1
    .parameter

    .prologue
    .line 32
    iget-object v0, p0, Lcom/netease/newsreader/util/myPreference;->rbClose:Landroid/widget/RadioButton;

    return-object v0
.end method


# virtual methods
.method protected onBindDialogView(Landroid/view/View;)V
    .locals 7
    .parameter "view"

    .prologue
    const v2, 0x7f030049

    const v6, 0x7f030026

    const/4 v5, 0x0

    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 52
    invoke-super {p0, p1}, Landroid/preference/DialogPreference;->onBindDialogView(Landroid/view/View;)V

    .line 53
    new-instance v1, Lcom/netease/newsreader/util/MergeAdapter;

    invoke-direct {v1}, Lcom/netease/newsreader/util/MergeAdapter;-><init>()V

    iput-object v1, p0, Lcom/netease/newsreader/util/myPreference;->adapter:Lcom/netease/newsreader/util/MergeAdapter;

    .line 54
    const v1, 0x7f0c0114

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    iput-object v1, p0, Lcom/netease/newsreader/util/myPreference;->offlineListView:Landroid/widget/ListView;

    .line 56
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->mInflater:Landroid/view/LayoutInflater;

    invoke-virtual {v1, v2, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout;

    iput-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayout:Landroid/widget/RelativeLayout;

    .line 58
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->mInflater:Landroid/view/LayoutInflater;

    invoke-virtual {v1, v2, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout;

    iput-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayoutWifi:Landroid/widget/RelativeLayout;

    .line 60
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->mInflater:Landroid/view/LayoutInflater;

    invoke-virtual {v1, v2, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RelativeLayout;

    iput-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayoutClose:Landroid/widget/RelativeLayout;

    .line 63
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayoutClose:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v4}, Landroid/widget/RelativeLayout;->setClickable(Z)V

    .line 64
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayout:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v4}, Landroid/widget/RelativeLayout;->setClickable(Z)V

    .line 65
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayoutWifi:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v4}, Landroid/widget/RelativeLayout;->setClickable(Z)V

    .line 66
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayoutClose:Landroid/widget/RelativeLayout;

    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 67
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayout:Landroid/widget/RelativeLayout;

    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 68
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayoutWifi:Landroid/widget/RelativeLayout;

    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->clickListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 70
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayoutClose:Landroid/widget/RelativeLayout;

    const v2, 0x7f0c0118

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RadioButton;

    iput-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbClose:Landroid/widget/RadioButton;

    .line 71
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayoutWifi:Landroid/widget/RelativeLayout;

    const v2, 0x7f0c0118

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RadioButton;

    iput-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbWifi:Landroid/widget/RadioButton;

    .line 72
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayout:Landroid/widget/RelativeLayout;

    const v2, 0x7f0c0118

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/RadioButton;

    iput-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rb:Landroid/widget/RadioButton;

    .line 74
    const-string v0, ""

    .line 75
    .local v0, value:Ljava/lang/String;
    iget-boolean v1, p0, Lcom/netease/newsreader/util/myPreference;->initStatus:Z

    if-eqz v1, :cond_0

    .line 76
    iget-object v0, p0, Lcom/netease/newsreader/util/myPreference;->mValue:Ljava/lang/String;

    .line 77
    iput-boolean v3, p0, Lcom/netease/newsreader/util/myPreference;->initStatus:Z

    .line 82
    :goto_0
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->mContext:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0b0062

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 83
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbClose:Landroid/widget/RadioButton;

    invoke-virtual {v1, v3}, Landroid/widget/RadioButton;->setChecked(Z)V

    .line 84
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbWifi:Landroid/widget/RadioButton;

    invoke-virtual {v1, v4}, Landroid/widget/RadioButton;->setChecked(Z)V

    .line 85
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rb:Landroid/widget/RadioButton;

    invoke-virtual {v1, v3}, Landroid/widget/RadioButton;->setChecked(Z)V

    .line 96
    :goto_1
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbClose:Landroid/widget/RadioButton;

    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->radioCheckedListener:Landroid/widget/CompoundButton$OnCheckedChangeListener;

    invoke-virtual {v1, v2}, Landroid/widget/RadioButton;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 97
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rb:Landroid/widget/RadioButton;

    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->radioCheckedListener:Landroid/widget/CompoundButton$OnCheckedChangeListener;

    invoke-virtual {v1, v2}, Landroid/widget/RadioButton;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 98
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbWifi:Landroid/widget/RadioButton;

    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->radioCheckedListener:Landroid/widget/CompoundButton$OnCheckedChangeListener;

    invoke-virtual {v1, v2}, Landroid/widget/RadioButton;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 100
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayoutClose:Landroid/widget/RelativeLayout;

    const v2, 0x7f0c0117

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    const-string v2, "\u5173\u95ed"

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 101
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayout:Landroid/widget/RelativeLayout;

    const v2, 0x7f0c0117

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 102
    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0b0063

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 103
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbLayoutWifi:Landroid/widget/RelativeLayout;

    const v2, 0x7f0c0117

    invoke-virtual {v1, v2}, Landroid/widget/RelativeLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 104
    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->mContext:Landroid/content/Context;

    invoke-virtual {v2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v2

    const v3, 0x7f0b0062

    invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 106
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->adapter:Lcom/netease/newsreader/util/MergeAdapter;

    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->rbLayoutWifi:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v2}, Lcom/netease/newsreader/util/MergeAdapter;->addView(Landroid/view/View;)V

    .line 107
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->adapter:Lcom/netease/newsreader/util/MergeAdapter;

    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->mInflater:Landroid/view/LayoutInflater;

    invoke-virtual {v2, v6, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/netease/newsreader/util/MergeAdapter;->addView(Landroid/view/View;)V

    .line 109
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->adapter:Lcom/netease/newsreader/util/MergeAdapter;

    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->rbLayout:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v2}, Lcom/netease/newsreader/util/MergeAdapter;->addView(Landroid/view/View;)V

    .line 110
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->adapter:Lcom/netease/newsreader/util/MergeAdapter;

    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->mInflater:Landroid/view/LayoutInflater;

    invoke-virtual {v2, v6, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/netease/newsreader/util/MergeAdapter;->addView(Landroid/view/View;)V

    .line 112
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->adapter:Lcom/netease/newsreader/util/MergeAdapter;

    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->rbLayoutClose:Landroid/widget/RelativeLayout;

    invoke-virtual {v1, v2}, Lcom/netease/newsreader/util/MergeAdapter;->addView(Landroid/view/View;)V

    .line 113
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->adapter:Lcom/netease/newsreader/util/MergeAdapter;

    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->mInflater:Landroid/view/LayoutInflater;

    invoke-virtual {v2, v6, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v1, v2}, Lcom/netease/newsreader/util/MergeAdapter;->addView(Landroid/view/View;)V

    .line 116
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->offlineListView:Landroid/widget/ListView;

    iget-object v2, p0, Lcom/netease/newsreader/util/myPreference;->adapter:Lcom/netease/newsreader/util/MergeAdapter;

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 117
    return-void

    .line 79
    :cond_0
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->mContext:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0b0062

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/util/myPreference;->getPersistedString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_0

    .line 86
    :cond_1
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->mContext:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0b0063

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 87
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbClose:Landroid/widget/RadioButton;

    invoke-virtual {v1, v3}, Landroid/widget/RadioButton;->setChecked(Z)V

    .line 88
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbWifi:Landroid/widget/RadioButton;

    invoke-virtual {v1, v3}, Landroid/widget/RadioButton;->setChecked(Z)V

    .line 89
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rb:Landroid/widget/RadioButton;

    invoke-virtual {v1, v4}, Landroid/widget/RadioButton;->setChecked(Z)V

    goto/16 :goto_1

    .line 91
    :cond_2
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbClose:Landroid/widget/RadioButton;

    invoke-virtual {v1, v4}, Landroid/widget/RadioButton;->setChecked(Z)V

    .line 92
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rbWifi:Landroid/widget/RadioButton;

    invoke-virtual {v1, v3}, Landroid/widget/RadioButton;->setChecked(Z)V

    .line 93
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->rb:Landroid/widget/RadioButton;

    invoke-virtual {v1, v3}, Landroid/widget/RadioButton;->setChecked(Z)V

    goto/16 :goto_1
.end method

.method protected onDialogClosed(Z)V
    .locals 2
    .parameter "positiveResult"

    .prologue
    .line 121
    invoke-super {p0, p1}, Landroid/preference/DialogPreference;->onDialogClosed(Z)V

    .line 122
    if-eqz p1, :cond_0

    .line 123
    iget-object v0, p0, Lcom/netease/newsreader/util/myPreference;->rb:Landroid/widget/RadioButton;

    invoke-virtual {v0}, Landroid/widget/RadioButton;->isChecked()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 124
    iget-object v0, p0, Lcom/netease/newsreader/util/myPreference;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0b0063

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/util/myPreference;->setValue(Ljava/lang/String;)V

    .line 132
    :cond_0
    :goto_0
    return-void

    .line 125
    :cond_1
    iget-object v0, p0, Lcom/netease/newsreader/util/myPreference;->rbWifi:Landroid/widget/RadioButton;

    invoke-virtual {v0}, Landroid/widget/RadioButton;->isChecked()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 126
    iget-object v0, p0, Lcom/netease/newsreader/util/myPreference;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0b0062

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/util/myPreference;->setValue(Ljava/lang/String;)V

    goto :goto_0

    .line 128
    :cond_2
    iget-object v0, p0, Lcom/netease/newsreader/util/myPreference;->mContext:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f0b0060

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/netease/newsreader/util/myPreference;->setValue(Ljava/lang/String;)V

    goto :goto_0
.end method

.method protected onGetDefaultValue(Landroid/content/res/TypedArray;I)Ljava/lang/Object;
    .locals 1
    .parameter "a"
    .parameter "index"

    .prologue
    .line 148
    invoke-virtual {p1, p2}, Landroid/content/res/TypedArray;->getString(I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method protected onSetInitialValue(ZLjava/lang/Object;)V
    .locals 3
    .parameter "restorePersistedValue"
    .parameter "defaultValue"

    .prologue
    .line 154
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/netease/newsreader/util/myPreference;->initStatus:Z

    .line 155
    if-eqz p1, :cond_0

    .line 156
    iget-object v1, p0, Lcom/netease/newsreader/util/myPreference;->mContext:Landroid/content/Context;

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0b0062

    invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Lcom/netease/newsreader/util/myPreference;->getPersistedString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 161
    .local v0, value:Ljava/lang/String;
    :goto_0
    invoke-virtual {p0, v0}, Lcom/netease/newsreader/util/myPreference;->setValue(Ljava/lang/String;)V

    .line 163
    return-void

    .line 159
    .end local v0           #value:Ljava/lang/String;
    :cond_0
    invoke-virtual {p2}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    .restart local v0       #value:Ljava/lang/String;
    goto :goto_0
.end method

.method public setValue(Ljava/lang/String;)V
    .locals 2
    .parameter "value"

    .prologue
    .line 135
    invoke-virtual {p0}, Lcom/netease/newsreader/util/myPreference;->shouldDisableDependents()Z

    move-result v1

    .line 137
    .local v1, wasBlocking:Z
    iput-object p1, p0, Lcom/netease/newsreader/util/myPreference;->mValue:Ljava/lang/String;

    .line 138
    invoke-virtual {p0, p1}, Lcom/netease/newsreader/util/myPreference;->persistString(Ljava/lang/String;)Z

    .line 140
    invoke-virtual {p0}, Lcom/netease/newsreader/util/myPreference;->shouldDisableDependents()Z

    move-result v0

    .line 141
    .local v0, isBlocking:Z
    if-eq v0, v1, :cond_0

    .line 142
    invoke-virtual {p0, v0}, Lcom/netease/newsreader/util/myPreference;->notifyDependencyChange(Z)V

    .line 144
    :cond_0
    return-void
.end method
